package com.awesome.common.base.mvp

import androidx.lifecycle.LifecycleObserver

/**
 * Author: JFangZ
 * Email: janezhang1901@163.com
 * Date: 2021/4/13 9:50
 * Description:The base of presenter.
 */
interface IPresenter<V> : LifecycleObserver {
    fun attachView(view: V)

    fun detachView()

    fun isViewAttached(): Boolean

    fun getView(): V?
}